import { Global } from '../Global';
import { Entity } from './def/Entity';
import { State } from './def/State';

export class BloodBottleEntity extends Entity {
    blood = {
        red: 200,
        blue: 400
    }
    handleEvent() {
        Global.em.removeEntity(Global.fm.getFloor(), this)
        // 提示
        Global.popUtil.popUp('血量恢复' + this.blood[this.type] + '点')

        Global.hero._heroState.fight.life += this.blood[this.type]
        return {
            move: true,
            cartoon: false
        }
    }

}

